package com.spic.system.api;

import com.spic.common.core.constant.SecurityConstants;
import com.spic.common.core.constant.ServiceNameConstants;
import com.spic.common.core.domain.R;
import com.spic.system.api.factory.RemoteBlastAlarmFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * RemoteBlastAlarm
 *
 * @author xuxiaochang@chinasofi.com
 * @date 2022/3/25
 */
@FeignClient(contextId = "remoteBlastAlarm", value = ServiceNameConstants.SPIC_BUSINESS_TICKETS, fallbackFactory = RemoteBlastAlarmFallbackFactory.class)
public interface RemoteBlastAlarm {
    @GetMapping("/blast/calcAlarm")
    R<Object> calcAlarm(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
